package com.zitronella.course.osseventmanager.service;

import com.zitronella.course.osseventmanager.domain.Event;
import com.zitronella.course.osseventmanager.domain.Position;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Robin
 * Date: Feb 9, 2009
 * Time: 11:09:50 PM
 * To change this template use File | Settings | File Templates.
 */
public interface PositionService{

    @Transactional
    public void addPosition(Event e, Position p);
    @Transactional
    public void removePosition(Event e, Position p);
    @Transactional
    public void updatePosition( Position p);
    @Transactional
    public List<Position> findPosition(String name);
    @Transactional
    public List<Position> findOpenPositionsForEvent(Event e);
    @Transactional
    public List<Position> findFilledPositionsForEvent(Event e);

    @Transactional
    public List<Position> findAllPositions();
}
